<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>欢迎使用移动端人力资源信息修改平台</title>
	<link rel="stylesheet" href="__PUBLIC__/Center/css/ch-ui.admin.css">
	<link rel="stylesheet" href="__PUBLIC__/Center/font/css/font-awesome.min.css">
    <link rel="shortcuticon" href="/favicon.ico" />
	<script type="text/javascript" src="__PUBLIC__/Center/js/jquery.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Center/js/ch-ui.admin.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Center/js/layer.js"></script>
    <style>
        .menu_box{
            top:0;
        }
        .menu_box ul li ul.sub_menu li {
            padding-left: 0;
        }
        .menu_box ul li ul.sub_menu li a {
            padding: 0;
            font-family:Microsoft YaHei, Tahoma, Helvetica, Arial, "\5b8b\4f53", sans-serif !important;
            font-size: 12px !important;
        }
        .menu_box ul li h3{
            font-size: 15px;
            font-weight: bold;
        }
        .top_right>ul>li{
            margin-right: 0 !important;
        }
        .but{
            height:30px;
            font-size:12px !important;
            padding: 6px 12px;
            margin-bottom: 0;
            font-weight: 400;
            line-height: 1.42857143;
            text-align: center;
            white-space: nowrap;
            vertical-align: middle;
        }
        .btn-default{
            background-color: rgb(255, 255, 255);
            color: rgb(51, 51, 51);
            border-width: 1px;
            border-style: solid;
            border-color: rgb(208, 208, 208) rgb(208, 208, 208) rgb(204, 204, 204);
            border-left:none ;
            border-right:none;
        }
        .btn-info{
            color: rgb(255, 255, 255);
            background-color:  #3383da;
            border:1px solid  #3383da;;
        }
        .btn-danger{
            color: rgb(255, 255, 255);
            background-color: #dc4f39;
            border:1px solid #dc4f39;
        }
        .btn-refresh{
            border-right:1px solid rgb(208, 208, 208) ;
        }
        .top_box{
            border-bottom: 1px solid #d5d5d5;
            box-shadow: 0px 2px 1px #efefef;
            background: white;
            box-sizing: border-box;
            /*background-color: #0097B4; ;*/
            /*background: #bae3f9;*/
        }
    </style>
    <script>
        $(function(){
            //菜单鼠标经过效果
            $('.sub_menu li').bind({
                'mouseover':function(){
                    $(this).css('background','#222222');
                    $(this).find('a').css('color','white');
                },
                'mouseout':function(){
                    $(this).css('background','');
                    var type = $(this).find('a').attr('type');
                    if(type == 1){
                        $(this).find('a').css('color','red');
                    }else{
                        $(this).find('a').css('color','');
                    }
                }
            });
            var id = {$uuid};
            var token = '{$token}';
            //历史记录
            $('#history').click(function(){
                location.href = '__MODULE__/Check/history/uuid/'+id+'/token/'+token;
            })
            //刷新页面
            $('#sx').click(function(){
                location.href = '__MODULE__/Pc/index/id/'+id+'/token/'+token;
            });
            //预览修改数据
            $('#yl').click(function(){
                location.href = '__MODULE__/check/preview/uuid/'+id+'/token/'+token;
            });
            //提交审核
            $('#sh').click(function(){
                layer.confirm('确定要提交吗?',{
                    btn : ['确定','取消']
                },function(){
                    layer.closeAll('dialog'); //关闭弹出层
                    layer.load(1, {shade: false});  //加载弹出层的加载样式
                    location.href = '__MODULE__/Update/index/uuid/'+id;
                });
            })
        });
    </script>
</head>
<body>
	<div class="top_box">
		<!--<div class="top_left" style="margin-left:200px;">-->
            <!--<button class="but btn-info" style="font-size:14px;width:70px;" id="history"  style="margin-left:50px;color:green;font-size:18px">历史记录</button>-->
		<!--</div>-->
		<div class="top_right" style="margin-right:80px">
			<ul>
                <li>
                    <button class="but btn-info" style="font-size:14px;width:70px;" id="history"  style="margin-left:50px;color:green;font-size:18px">历史记录</button>
                </li>
                <li>
                    <button class="but btn-default" style="font-size:14px;width:70px;" id="yl"  style="margin-left:50px;color:green;font-size:18px">修改预览</button>
                </li>
                <li><button class="but btn-danger"  style="font-size:14px;width:70px;" id="sh"  style="margin-left:50px;color:red;font-size:18px">
                       提交审核
                    </button>
                </li>
                <li>
                    <button class="but btn-info" style="font-size:14px;width:70px;" id="sx">刷　新</button>
                </li>
			</ul>
		</div>
	</div>
	<div class="menu_box" style="overflow:auto;">
		<ul>
            <li>
            	<h3><i class="fa fa-fw fa-wrench"></i>员工子集导航</h3>
                <ul class="sub_menu" style="display: block;">
                	<?php foreach($menu as $k => $v){
                        if($v['display']){
                            if($v['change_type'] == 1){
                                $style="style='color:red'";
                            }else{
                                $style="style=''";
                            }
                	?>
                    <li style="text-align: center;overflow: hidden;">
                    	<a type="<?php echo $v['change_type'];?>" href="__MODULE__/List/index/uuid/{$uuid}/menu/<?php echo $v['name']?>" <?php echo $style;?> target="main">
                    		<?php echo $v['caption'];?>
                    	</a>
                    </li>
                    <?php }} ?>
                </ul>
            </li>
		</ul>
	</div>
	<div class="main_box">
		<iframe src="{:U('info',array('id'=>$uuid,'item'=>$item))}" frameborder="0" width="100%" height="100%" name="main"></iframe>
	</div>
	<!--<div class="bottom_box">-->
		<!--<center>神舟软件</center>-->
	<!--</div>-->
</body>
</html>